package com.lin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 林伟鸿
 * @since 2021-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CarInformation implements Serializable {

    private static final long serialVersionUID = 1L;

        /**
     * 汽车编号
     */
         @TableId(value = "car_id", type = IdType.AUTO)
    private Integer carId;

        /**
     * 汽车名称
     */
         private String carName;

        /**
     * 每日租金
     */
         private Integer dailyPrice;

        /**
     * 汽车图片存放url
     */
         private String imageUrl;

        /**
     * 汽车品牌
     */
         private String brand;

        /**
     * 出厂日期
     */
        @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
         private Date productYear;

        /**
     * 产地
     */
         private String productCountry;

        /**
     * 车身颜色
     */
         private String color;

        /**
     * 库存
     */
        private Integer stock;

    /**
     * 创建时间
     */
         @TableField(fill = FieldFill.INSERT)
         @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;


}
